<extend name="Public/base"/>
<block name="body">




   <form method="post" class="form-horizontal J_ajaxForm"  action="{:U("")}">
      <div class="table_list">
        <table class="table table-striped table-bordered table-hover" >
      <thead>
        <tr>
          <th class="hidden-480">ID</th>
          <th >角色名称</th>
          <th class="hidden-480">角色描述</th>
          <th >状态</th>
          <th >管理操作</th>
        </tr>
      </thead>
      <tbody>
        <foreach name="_list" item="vo">
        <tr>
          <td class="hidden-480">{$vo.id}</td>
          <td>{$vo.title}</td>
          <td class="hidden-480">{$vo.remark}</td>
          <td>
         <if condition="$vo[status] eq 1">
        <a href="{:U('changestatus',array('id'=>$vo['id']))}" class="ajax-switch"> <i class="icon-check-circle"></i></a>
         <else/>
         <a href="{:U('changestatus',array('id'=>$vo['id']))}" style="color:#CCC" class="ajax-switch"><i class="icon-times-circle"></i></a>
         </if>
          </td>
          <td  class="text-c">
          <if condition="$vo['id'] eq 1"> 
          <font color="#cccccc">权限设置</font> | <a href="{:U('Admin/Admin/index',array('group_id'=>$vo['id']))}">成员管理</a> | <font color="#cccccc">修改</font> | <font color="#cccccc">删除</font>
          <else />
          <a href="{:U('access',array('id'=>$vo['id']))}">权限设置</a> | <a href="{:U('Admin/Admin/index',array('group_id'=>$vo['id']))}">成员管理</a> | <a href="{:U('editGroup',array('id'=>$vo['id']))}">修改</a> | <a class="ajax-del confirm" data-title="你确认删除吗？" href="{:U('deleteGroup',array('id'=>$vo['id']))}">删除</a>
          </if>
          </td>
        </tr>
        </foreach>
      </tbody>
    </table>
      </div>
     
    </form>


</block>




